<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>初识vue</title>
    <script type="text/javascript" src="../js/vue.js"></script>
</head>

<body>
    <div id="root">
        <h1>hello, {{name}}</h1>
    </div>
    <script type="text/javascript">
        Vue.config.productionTip = false

        new Vue({
            el: '#root', //el 指定容器对象，选择器对象
            data: {
                name: 'rain bear'
            }
        })
    </script>
</body>

</html>